﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucThongKeKhoaHoc.ascx.cs" Inherits="STT.Admin.UserControls.ucThongKeKhoaHoc" %>

<div id="content-header">
    <div id="breadcrumb">
        <a href="../Default.aspx" class="tip-bottom" data-original-title="Về bảng điều khiển">
            <i class="icon-home"></i>Trang chủ
        </a>
        <a href="../Admin/Default.aspx?" class="current">Thống kê</a>
        <a href="../Admin/Default.aspx?" class="current">Thống kê khóa học</a>
    </div>
</div>
<div class="widget-box collapsible">
    <div class="widget-title">
        <a href="#collapseOne" data-toggle="collapse" class="">
            <span class="icon"><i class="icon-th"></i></span>
            <h5>Điều kiện thống kê khóa học</h5>
        </a>
    </div>

    <div class="in collapse" id="collapseOne" style="height: auto;">
        <div class="widget-content nopadding">
            <div class="dataTables_wrapper" role="grid">
                <%-- Cac dieu kien tim kiem --%>
                <div class="container-fluid">
                    <div class="row-fluid">    
                            <div class="control-group">
                                <label class="control-label">Năm học :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddNamHoc" runat="server"></asp:DropDownList>
                                </div>
                            </div>
                  </div>
                </div>
                <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
                    <asp:Button ID="btTimKiem" runat="server" Text="Thống kê" CssClass="btn btn-info"
                        OnClick="btTimKiem_Click" />
                </div>
            </div>
        </div>
    </div>
    <%-- Gridview ket qua tim kiem --%>
    <div class="widget-title">
        <a href="#collapseTwo" data-toggle="collapse" class="">
            <span class="icon"><i class="icon-th"></i></span>
            <h5>Kết quả thống kê</h5>
        </a>
    </div>
    <div class="in collapse" id="collapseTwo" style="height: auto;">
        <div class="widget-content nopadding">
            <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
                <asp:GridView ID="gvKhoaHoc" runat="server" AutoGenerateColumns="False"
                    DataKeyNames="MaKhoaHoc" CssClass="table table-bordered table-hover"
                    AllowPaging="True" OnPageIndexChanging="gvKhoaHoc_PageIndexChanging"
                    PageSize="20">
                    <Columns>
                        <asp:BoundField DataField="MaKhoaHoc" HeaderText="Mã KH"
                            InsertVisible="False" ReadOnly="True" SortExpression="MaKhoaHoc" />
                        <asp:BoundField DataField="TenKhoaHoc" HeaderText="Tên KH"
                            SortExpression="TenKhoaHoc" />
                        <asp:BoundField DataField="TenGV" HeaderText="Giảng viên"
                            SortExpression="TenGV" />
                        <asp:BoundField DataField="TenHV" HeaderText="Học viên"
                            SortExpression="TenHV" />
                        <asp:BoundField DataField="TenLop" HeaderText="Tên lớp"
                            SortExpression="TenLop" />
                        <%--                      <asp:BoundField DataField="NoiDung" HeaderText="NoiDung"
                            SortExpression="NoiDung" />--%>
                        <asp:BoundField DataField="DiaDiemHoc" HeaderText="Địa điểm"
                            SortExpression="DiaDiemHoc" />
                        <asp:BoundField DataField="ThoiGianBatDau" HeaderText="Bắt đầu"
                            SortExpression="ThoiGianBatDau" DataFormatString="{0:dd-MM-yyyy}" />
                        <asp:BoundField DataField="ThoiGianKetThuc" HeaderText="Kết thúc"
                            SortExpression="ThoiGianKetThuc" DataFormatString="{0:dd-MM-yyyy}" />
                        
                        <asp:TemplateField HeaderText="Chi tiết" ShowHeader="False" ItemStyle-CssClass="span1">
                            <ItemTemplate>
                                <asp:Label ID="lblChiTiet" runat="server" data-original-title="Tooltip <br/> in left"
                                    CssClass="tip-left">
                                <img src="../../img/detail.jpg" alt="Alternate Text" />
                                </asp:Label>
                            </ItemTemplate>

                            <ItemStyle CssClass="span1" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings Mode="NumericFirstLast" />
                </asp:GridView>
                <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
                    <div class="btn-group">
                        <button class="btn">
                            <asp:LinkButton ID="lbXuatDuLieu" runat="server" OnClick="lbXuatDuLieu_Click">Xuất dữ liệu</asp:LinkButton>
                        </button>
                        <button data-toggle="dropdown" class="btn dropdown-toggle">
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li><a href="#">Xuất Excel</a></li>
                            <li><a href="#">Xuất Word</a></li>
                            <li><a href="#">Xuất PDF</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
